export interface IParam {
  [name: string]: any
}

export interface IResponse<T = any> {
  code?: number;
  message?: string;
  data?: T;
}

export interface IPageResponse<T> extends IResponse<T[]> {
  pageInfo: PageInfo
}

export interface PageResponse {
  code?: number;
  message?: string;
  data?: any;
  pageInfo?: PageInfo
}

export interface PageInfo {
  page: number;
  size: number;
  pages?: number;
  total?: number;
}

export const statusEnum: any = {
  'EBL': {text: '正常', color: 'green'},
  'DEL': {text: '已删除', color: 'volcano'},
  'LOC': {text: '已锁定', color: 'volcano'},
};
